.main {
  height: 100%;
  overflow: hidden;
  display: flex;
  &_left {
    flex: 1 1;
    overflow: auto;
    padding-right: 10px;
    section {
      margin-bottom: 24px;
      &:last-child {
        margin-bottom: 0;
      }
      overflow: hidden; // 边距问题
    }
  }
  &_right {
    flex: 0 0 auto;
    padding-left: 10px;
    :global {
      .ant-anchor-link {
        --ant-anchor-link-padding-block: 8px !important;
      }
    }
  }
}
.footer {
  display: flex;
  justify-content: flex-end;
}

.card {
  border: 1px solid var(--fba-color-card-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fba-card-box-shadow);
  &_header {
    padding: 16px;
    border-bottom: 1px solid var(--fba-color-card-border);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    &_left {
      flex: 1 1;
    }
    &_right {
      flex: 0 0 auto;
    }
  }
  &_body {
    padding: 16px;
  }
}

.tpl {
  display: flex;
  gap: 24px;
  &_left {
    flex: 1 1;
  }
  &_right {
    flex: 0 0 auto;
  }
}

.DynamicField {
  height: 100%;
  width: 320px;
  display: flex;
  flex-direction: column;
  &_label {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  &_main {
    flex: 1 1;
  }
  &_tabs {
    height: 157px;
    border: 1px solid var(--ant-color-border);
    border-radius: 6px;
    :global {
      .ant-tabs-nav {
        margin-bottom: 0;
      }
      .ant-tabs-nav-wrap {
        padding: 0 16px;
      }
      .ant-tabs-tabpane {
        padding: 12px 16px;
      }
    }
  }
  &_item {
    display: flex;
    align-items: center;
    gap: 12px;
    > :first-child {
      flex: 1 1;
      overflow: hidden;
    }
    > :last-child {
      flex: 0 0 auto;
    }
  }
}

.is_readonly {
  :global(.ag-fill-handle) {
    display: none !important;
  }
}
.is_error {
  background-color: fade(red, 10%);
}

.required_mark {
  margin-right: var(--ant-margin-xxs);
  color: #ff4d4f;
}
